/* 首页布局 */
.dashboard-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard-widget {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dashboard-widget h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.dashboard-widget h3 i {
    margin-right: 8px;
    color: #3498db;
}

/* 日历样式 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-nav-btn:hover {
    background: #3498db;
}

#current-month-year {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.weekday {
    padding: 8px;
    text-align: center;
    font-weight: bold;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: #e3f2fd;
}

.calendar-day.today {
    background: #3498db;
    color: white;
    font-weight: bold;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.selected {
    background: #28a745;
    color: white;
}

/* 专注计时器样式 */
.timer-container {
    text-align: center;
}

.timer-display {
    font-size: 48px;
    font-weight: bold;
    color: #3498db;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 3px solid #3498db;
}

.timer-controls {
    margin: 20px 0;
}

.timer-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: bold;
}

.timer-start {
    background: #28a745;
    color: white;
}

.timer-start:hover {
    background: #218838;
    transform: translateY(-2px);
}

.timer-pause {
    background: #ffc107;
    color: #333;
}

.timer-pause:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.timer-reset {
    background: #dc3545;
    color: white;
}

.timer-reset:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.timer-presets {
    margin: 15px 0;
}

.preset-btn {
    padding: 8px 15px;
    margin: 0 3px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-btn:hover {
    background: #3498db;
    color: white;
}

.preset-btn.active {
    background: #3498db;
    color: white;
}

.timer-status {
    margin-top: 15px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-widget {
        min-width: auto;
    }
    
    .timer-display {
        font-size: 36px;
    }
    
    .calendar-day {
        min-height: 30px;
        padding: 4px;
    }
}
